﻿:root {
    --cp-orange: #ff9f00;
    --cp-orange-dark: #ea8e00;
    --cp-link: #0a67b2;
    --cp-text: #222;
    --cp-muted: #666;
    --cp-border: #d7d7d7;
    --cp-bg: #efefef;
    --cp-panel: #fff;
    --cp-panel-soft: #f9f9f9;
    --cp-code-bg: #fbfbfb;
    --cp-code-border: #dcdcdc;
    --cp-tag-bg: #f3f8fc;
    --cp-tag-border: #bfd7ea;
    --cp-green: #2c8b2c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cp-bg);
    color: var(--cp-text);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: var(--cp-link);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 16px 60px;
}

.article-shell {
    background: var(--cp-panel);
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.article-inner {
    padding: 22px 28px 34px;
}

.archive-note {
    background: linear-gradient(180deg, #fff7e8, #fff2d5);
    border-bottom: 1px solid #e4cf9b;
    color: #6d4f00;
    padding: 10px 16px;
    font-size: 13px;
}

.header {
    border-bottom: 1px solid #ececec;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.tags.horizontal {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

    .tags.horizontal .t a {
        display: inline-block;
        padding: 3px 9px;
        border-radius: 12px;
        background: var(--cp-tag-bg);
        border: 1px solid var(--cp-tag-border);
        font-size: 12px;
        color: #2f5e83;
    }

.title h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    color: #111;
    letter-spacing: -.02em;
}

.entry.flex-container {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.avatar-wrap {
    flex: 0 0 auto;
}

.avatar {
    width: 62px;
    height: 62px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid #bbb;
    background: #ddd;
}

.flex-item {
    min-width: 0;
}

.flex-item-tight {
    margin-right: 10px;
}

.row-between {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.author {
    font-size: 18px;
}

.small-text {
    font-size: 12px;
    color: var(--cp-muted);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-prompt {
    color: #666;
}

.rating-result img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.rating-votes {
    color: #444;
    font-weight: 700;
}

.meta-row {
    color: var(--cp-muted);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

    .meta-row .stats img {
        width: 16px;
        height: 16px;
        vertical-align: text-bottom;
        margin-right: 3px;
    }

.summary {
    font-size: 19px;
    color: #555;
    margin-top: 15px;
}

.abstract {
    margin: 18px 0 24px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e3e3e3;
    color: #444;
    font-size: 14px;
}

.text h2 {
    margin: 28px 0 12px;
    font-size: 30px;
    font-weight: 400;
    color: #2a2a2a;
    border-bottom: 1px solid #efefef;
    padding-bottom: 5px;
}

.text h3 {
    font-size: 24px;
    font-weight: 400;
    margin: 24px 0 10px;
}

.text h4 {
    font-size: 20px;
    font-weight: 400;
    margin: 22px 0 8px;
}

.text p {
    margin: 0 0 14px;
    font-size: 14px;
}

.text ul, .text ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

.text li {
    margin: 0 0 8px;
    font-size: 14px;
}

.text code {
    font-family: Consolas, 'Courier New', monospace;
    background: #f3f3f3;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: .95em;
}

.download {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid #d7e7c5;
    background: #f6fff0;
    border-radius: 3px;
    max-width: 320px;
}

    .download li a {
        display: block;
        padding: 10px 14px;
        font-weight: bold;
        color: #487208;
    }

.pre-lang {
    margin-top: 16px;
    background: linear-gradient(180deg, #f4f4f4, #ececec);
    border: 1px solid var(--cp-code-border);
    border-bottom: none;
    color: #555;
    font-size: 12px;
    padding: 7px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

pre {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--cp-code-bg);
    border: 1px solid var(--cp-code-border);
    overflow: auto;
    font-size: 13px;
    line-height: 1.5;
    color: #222;
    font-family: Consolas, 'Courier New', monospace;
    tab-size: 4;
    white-space: pre;
}

.code-comment {
    color: #008000;
}

.code-keyword {
    color: #0000ff;
    font-weight: 600;
}

.code-sdkkeyword {
    color: #2b91af;
}

.code-digit {
    color: #800000;
}

.code-string {
    color: #a31515;
}

.code-summarycomment {
    color: #808080;
}

.code-bracket {
    color: #444;
}

.text img {
    max-width: 100%;
    height: auto !important;
    border: 1px solid #d3d3d3;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    background: #fafafa;
}

#ctl00_OriginallyPosted {
    margin: 28px 0 12px;
    font-size: 13px;
    color: #555;
}

#LicenseTerms {
    background: #fafafa;
    border: 1px solid #ececec;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 14px;
}

.author-wrapper {
    position: relative;
    border-top: 1px solid #ececec;
    padding-top: 18px;
    margin-top: 22px;
}

.profile-pic {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #bbb;
    background: #ddd;
    border-radius: 3px;
}

.subdue {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.company, .text-nowrap {
    color: #555;
    font-size: 14px;
}

.description {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--cp-panel-soft);
    border: 1px solid #ececec;
    font-size: 14px;
    color: #444;
}

.footer-note {
    margin-top: 18px;
    color: #777;
    font-size: 12px;
    border-top: 1px solid #ececec;
    padding-top: 12px;
}

@media (max-width: 760px) {
    .article-inner {
        padding: 16px;
    }

    .title h1 {
        font-size: 28px;
    }

    .entry.flex-container {
        flex-direction: column;
    }

    .desktop-only {
        display: none !important;
    }

    .author-wrapper > div[style*='padding-right:100px'] {
        padding-right: 0 !important;
    }
}


